﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="FormSample.aspx.cs" Inherits="FormExample_FormSample" %>

<%@ Register assembly="SCS.Toolbar" namespace="SCS.Web.UI.WebControls" tagprefix="SCS" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link href="Toolbar.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPH1" Runat="Server">

    <table bgcolor="white" cellpadding="5" width="450">
		<tr>
			<td colspan="2"><asp:label id="PageStatus" runat="server" font-size="Small" font-names="Arial"></asp:label></td>
		</tr>
		<tr>
			<td style="WIDTH: 94px" width="94"><asp:label id="nameLabel" runat="server" font-size="Small" font-names="Arial" font-bold="True">Name:</asp:label></td>
			<td><asp:textbox id="NameEntry" runat="server" width="224px"></asp:textbox><asp:requiredfieldvalidator id="RequiredFieldValidator4" runat="server" font-size="Small" font-names="Arial"
					errormessage="Required" controltovalidate="NameEntry"></asp:requiredfieldvalidator></td>
		<tr>
			<td style="WIDTH: 94px"><asp:label id="emailabel" runat="server" font-size="Small" font-names="Arial" font-bold="True">Email:</asp:label></td>
			<td><asp:textbox id="EmailEntry" runat="server" width="224px"></asp:textbox><asp:requiredfieldvalidator id="RequiredFieldValidator5" runat="server" font-size="Small" font-names="Arial"
					errormessage="Required" controltovalidate="EmailEntry"></asp:requiredfieldvalidator></td>
		<tr>
			<td style="WIDTH: 94px; HEIGHT: 33px"><asp:label id="categoryLabel" runat="server" font-size="Small" font-names="Arial" font-bold="True">Category:</asp:label></td>
			<td style="HEIGHT: 33px"><asp:dropdownlist id="CategorySelect" runat="server" width="224px">
				<asp:listitem value="[none]">[none]</asp:listitem>
				<asp:listitem value="Software">Software</asp:listitem>
				<asp:listitem value="Hardware">Hardware</asp:listitem>
				<asp:listitem value="Phone">Phone</asp:listitem>
			</asp:dropdownlist><asp:requiredfieldvalidator id="RequiredFieldValidator6" runat="server" font-size="Small" font-names="Arial"
				errormessage="Required" controltovalidate="CategorySelect"></asp:requiredfieldvalidator></td>
		</tr>
		<tr>
			<td style="WIDTH: 94px"><asp:label id="problemLabel" runat="server" font-size="Small" font-names="Arial" font-bold="True">Problem:</asp:label></td>
			<td><asp:textbox id="ProblemEntry" runat="server" width="224px" textmode="MultiLine" rows="4"></asp:textbox><asp:requiredfieldvalidator id="RequiredFieldValidator7" runat="server" font-size="Small" font-names="Arial"
					errormessage="Required" controltovalidate="ProblemEntry"></asp:requiredfieldvalidator></td>
		</tr>
		<tr>
			<td align="right" colspan="2">
                <SCS:Toolbar ID="Toolbar1" runat="server" 
                    CssClass="toolbar" 
                    Width="428px" 
                    EnableClientApi="true">
                    <Items>
                        <SCS:ToolbarButton 
                            CommandName="Save"
                            Text="Save" 
                            ToolTip="Save this record" 
                            ImageUrl="~/Images/save.gif" 
                            CausesValidation="true" />
                        <SCS:ToolbarButton 
                            CommandName="Delete" 
                            ConfirmationMessage="Are you sure you want to delete?"
                            Text="Delete" 
                            ToolTip="Delete this record." 
                            ImageUrl="~/Images/DELETE.GIF" 
                            CausesValidation="false" />
                        <SCS:ToolbarButton 
                            CommandName="New" 
                            Text="New" 
                            ToolTip="Create a new record." 
                            ImageUrl="~/Images/ctxwiz_cls.gif" 
                            CausesValidation="false" />
                    </Items>
                    <ButtonCssClasses 
                        CssClass="button" 
                        CssClassEnabled="button_enabled" 
                        CssClassDisabled="button_disabled" />
                </SCS:Toolbar>
            </td>
		</tr>
	</table>
</asp:Content>

